package com.aspose.cells;

class zbdq extends zck {
   zbdq(zn var1, float var2, float var3, zbkr var4) {
      super(var1, var2, var3, var4);
      switch(this.e.b) {
      case 1:
      default:
         break;
      case 2:
         com.aspose.cells.b.a.b.a.zi var5 = new com.aspose.cells.b.a.b.a.zi(1.0F, 0.0F, 0.0F, -1.0F, 0.0F, this.e.S().i());
         this.a.b(var5);
         break;
      case 3:
         com.aspose.cells.b.a.b.a.zi var6 = new com.aspose.cells.b.a.b.a.zi(-1.0F, 0.0F, 0.0F, -1.0F, this.e.S().h(), this.e.S().i());
         this.a.b(var6);
         break;
      case 4:
         com.aspose.cells.b.a.b.a.zi var7 = new com.aspose.cells.b.a.b.a.zi(-1.0F, 0.0F, 0.0F, 1.0F, this.e.S().h(), 0.0F);
         this.a.b(var7);
      }

   }

   com.aspose.cells.b.a.b.a.ze a(com.aspose.cells.b.a.b.zq var1) {
      float var2 = 0.0F;
      float var3 = 0.0F;
      float var4 = 0.0F;
      float var5 = Math.min(var1.h(), var1.i());
      if (this.e.m != null) {
         if (this.e.m.a.size() > 0) {
            var2 = com.aspose.cells.b.a.ze.a(this.e.m.a.get(0)) / 60000.0F;
            var3 = com.aspose.cells.b.a.ze.a(this.e.m.a.get(1)) / 60000.0F;
            var4 = var5 * com.aspose.cells.b.a.ze.a(this.e.m.a.get(2)) / 100000.0F;
         } else {
            var2 = 180.0F;
            var3 = 0.0F;
            var4 = var5 * 25000.0F / 100000.0F;
         }
      } else {
         var2 = 180.0F;
         var3 = 0.0F;
         var4 = var5 * 25000.0F / 100000.0F;
      }

      com.aspose.cells.b.a.b.a.ze var6 = new com.aspose.cells.b.a.b.a.ze();
      float var7 = this.g;
      float var8 = this.h;
      float var9 = this.e.v().h();
      float var10 = this.e.v().i();
      com.aspose.cells.b.a.b.zq var11 = new com.aspose.cells.b.a.b.zq(var7, var8, var9, var10);
      if (var3 > 180.0F && var3 <= 360.0F) {
         var6.a(var11, var2, var3 - var2);
      } else {
         var6.a(var11, var2, 360.0F - var2 + var3);
      }

      if (var3 > 180.0F && var3 <= 360.0F) {
         var6.a(var7 + var4, var8 + var4, var9 - 2.0F * var4, var10 - 2.0F * var4, var3, -(var3 - var2));
      } else {
         var6.a(var7 + var4, var8 + var4, var9 - 2.0F * var4, var10 - 2.0F * var4, var3, -(360.0F - var2 + var3));
      }

      var6.i();
      return var6;
   }
}
